﻿@model HackApp.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<div class="row-fluid">
                
    <!--Info column on the left-->
    <div class="span3 well">
		<h3>Get ideas!</h3>
        <p>If you want to have full access to our app ideeas store, to be able to vote or join a team you need to be logged in.</p>
    </div>
    
    <!--Main content with login form-->    	
    <div class="span9">

        <h3>Log In</h3>
        <hr>

        @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) 
        {
            @Html.AntiForgeryToken()
            
            @Html.Raw(@Html.ValidationSummary(true, "Login unsuccessful", new { @class = "alert alert-error" }))
            
            @Html.LabelFor(m => m.UserName)
            @Html.TextBoxFor(m => m.UserName, new { @class="span5" })
            @Html.ValidationMessageFor(m => m.UserName)
            
            @Html.LabelFor(m => m.Password)
            @Html.PasswordFor(m => m.Password, new { @class="span5" })
            @Html.ValidationMessageFor(m => m.Password)
            
            <div>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox", style="display:inline-block; margin-bottom:40px;" })
            </div>
            
            <input class="btn btn-primary btn-large" type="submit" value="Log in" /> <text>or</text>
            @Html.ActionLink("Register", "Register", null, new { @class="btn btn-info btn-large" }) <text>if you don't have an account.</text>
            
        }
    </div>
</div>


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
